package com.jx.smartbot.repository;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.jx.smartbot.entity.WpRemind;

public interface WpRemindRepository extends PagingAndSortingRepository<WpRemind, Long> {
	@Modifying 
	@Query("update WpRemind w set w.status = ?1 where w.id = ?2") 
	int setFixedIdFor(int status,long id); 
}
